package com.scott.ch300.lambda.ch06;

import org.junit.Test;

import java.util.function.Function;


/**
 * @author 黄后林
 * @version 1.0
 * @note
 * @date 2022-06-28 21:50:42
 */
public class StudyLambda {


    @Test
    public void test(){

        Function<Integer, Student> fun = Student::new;
        Student stu = fun.apply(18);
        System.out.println(stu.getAge());

        System.out.println("sdfsdf");

    }


}
